//
//  WeaHeaderAddButton.m
//  UIA段项目 墨家天气
//
//  Created by dllo on 15/8/27.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "WeaHeaderAddButton.h"

@implementation WeaHeaderAddButton
-(void)dealloc
{
    [_cityName release];
    [_imageV release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {        
        self.imageV = [[UIImageView alloc]init];
        self.imageV.image = [UIImage imageNamed:@"weaadd.png"];
        [self addSubview:_imageV];
        [_imageV release];
        
        self.cityName = [[UILabel alloc]init];
        self.cityName.textColor = [UIColor whiteColor];
        [self addSubview:_cityName];
        self.cityName .textAlignment = 1;
        [_cityName release];

    }
    
    
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.imageV.frame = CGRectMake(0 , 0, 30 * OffWidth, 30 * OffHeight);
    self.cityName.frame = CGRectMake(30 * OffWidth, 0, 100 * OffWidth, 30 * OffHeight);
   }
@end
